import random


tabletogenerate = int(input("Please enter the DECIMAL number of bytes you want to corrupt."))
output_byte = 0

fout = open("bytes.txt", "w+")

loopnumber = tabletogenerate
print "Generating bytes..."
while(tabletogenerate >= 0):

	output_byte = hex(random.randint(1,16))


	fout.write(output_byte)
	fout.write("\n")
	tabletogenerate = tabletogenerate - 1

fout.close()
output_byte = 0
print "Running integrity check..."
if(output_byte == 0):
        print "Terminating..."
        print "Done!"
else:
        while (1 == 1):
                print "PIRATES!!!!!!!!!!!!!!!!"


